
<!DOCTYPE HTML>

<html>

<head>

<meta charset="utf-8">

<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">

<title>jQuery左右滑动效果选取数值</title>

<style type="text/css">

/*向上的三角*/
.arrow-up {
width:0;
height:0;
border-left:30px solid transparent;
border-right:30px solid transparent;
border-bottom:30px solid #fff;
}

</style>


</head>



<body>


<div class="arrow-up"><!--向上的三角--></div>

</body>
<script>
	var str="我爱中国";
	if(str.indexOf("中国")>=0)
	{
	   console.log("含有此字符串");
	}
	else
	{
	 console.log("没有此字符串");
	}
</script>
</html>

